<?php
class PrintQuery extends PDOStatement{

	public function PrintQuery(){
			
	}

	public static function queryPrint($sth){
			ob_start();
			$sth->debugDumpParams();
			$str = ob_get_contents();
			ob_end_clean();
			$string = preg_split('/Params:/',$str);
			echo 	'<div class="query">
						<p class="querysql">'.$string[0].'</p>
						<!-- <p class="queryparam">Params : <br />'.$string[1].'</p> -->
					</div>';
	}
		
}
?>
